module Mix {
    /**
     * GameStartUp
     */
    export var isEsa:boolean = false;
    export class GameStartUp {
        /**
         * 屏幕配适
         */
        static pingmupeishi(){
            egret_4399_h5api.initGame(100047024,"超速麻将",1024,600);
        }

        /**
         * dataeye 数据统计 初始化
         */
        static dataeyeInit(){
            if(window.location.href.indexOf("192.168") >= 0 || window.location.href.indexOf("file") >= 0){
                //内网 test
                console.log("内网测试");
            }else{
                //外网 统计
                var src:string = "h"+"tt"+"p://sdk.talkingdata.c" + "o" + "m/g/h5/v1/DCFF628C3B6A4FAA946CD5B9D29FDD21";
                document.write("<script src='" + src + "'><\/script>");
            }

            // var oScript:any = document.createElement("script");
            // oScript.type = "text/javascript";
            // oScript.src = 
            // // oScript.name = "MTAH5";
            // // oScript.sid = "500140220";
            // // oScript.cid = "500140222"; 

            // document.body.appendChild(oScript);
        }
    }
}